package intermediate_representation;

public class CjumpRP extends InterRP {
    private String op1;
    private String op2;
    private String calcu;
    private String label;

    public CjumpRP(String op1, String op2, String calcu, String label) {
        this.op1 = op1;
        this.op2 = op2;
        this.calcu = calcu;
        this.label = label;
    }

    public String getOp1() {
        return op1;
    }

    public String getOp2() {
        return op2;
    }

    public String getCalcu() {
        return calcu;
    }

    public String getLabel() {
        return label;
    }

    public String toString() {
        return "cmp " + op1 + " " + op2 + "\n" + calcu + " " + label;
    }
}
